// +---------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +---------------------------------------------------------------------
// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------

import LayoutMain from '@/layout';
import setting from '@/setting';
let routePre = setting.routePre;

const meta = {
  auth: true,
};

const pre = 'master_';

export default {
  path: routePre + '/master',
  name: 'master',
  header: 'master',
  redirect: {
    name: `${pre}index`,
  },
  meta,
  component: LayoutMain,
  children: [
    {
      path: 'job',
      name: `${pre}job`,
      meta: {
        auth: ['admin-master-job'],
        title: '职称类别',
      },
      component: () => import('@/pages/master/job/index'),
    },
    {
        path: 'list',
        name: `${pre}list`,
        meta: {
          auth: ['admin-master-master-index'],
          title: '专家列表',
        },
        component: () => import('@/pages/master/list/index'),
      },
      {
        path: 'list/add_master/:id?',
        name: `${pre}addMaster`,
        meta: {
          auth: ['admin-master-addMaster'],
          title: '添加专家',
          activeMenu: routePre + '/master/list',
        },
        component: () => import('@/pages/master/list/addMaster'),
      },
  ],
};
